<?php session_start();?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">

<meta http-equiv="content-type" content="text/html;charset=utf-8">
<head>
<title>Register Account</title>
<base  />
<link href="image/data/cart.png" rel="icon" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/mobile/stylesheet/stylesheet.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-1.8.9.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/ui/themes/ui-lightness/jquery-ui-1.8.9.custom.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/ui/external/jquery.cookie.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery.jcarousel.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>


<script language="JavaScript" src="catalog/view/javascript/gen_validatorv4.js" type="text/javascript" xml:space="preserve"></script>

<script type="text/javascript" src="scripts3.js"></script>


</head>
<body>
<div id="container">
  <ul class="links">
      <li><a href="index.php">Home</a></li>
      <li><a href="" id="wishlist_total">Wish List (0)</a></li>
      <li><a href="">My Account</a></li>
      <li><a href="">Shopping Cart</a></li>
      <li><a href="">Checkout</a></li>
  </ul>
  
     <form action="" method="post" enctype="multipart/form-data">
    <div id="language">Language            &nbsp;<img src="image/flags/gb.png" alt="English" title="English" onclick="$('input[name=\'language_code\']').attr('value', 'en').submit(); $(this).parent().parent().submit();" />
            &nbsp;<img src="image/flags/fr.png" alt="French" title="French" onclick="$('input[name=\'language_code\']').attr('value', 'FR').submit(); $(this).parent().parent().submit();" />
            <input type="hidden" name="language_code" value="" />
      <input type="hidden" name="redirect" value="index5502.html?route=account/register" />
    </div>
  </form>
      <form action="" method="post" enctype="multipart/form-data">
    <div id="currency">Currency                        <a title="Euro" onclick="$('input[name=\'currency_code\']').attr('value', 'EUR').submit(); $(this).parent().parent().submit();">€</a>
                                    <a title="Pound Sterling" onclick="$('input[name=\'currency_code\']').attr('value', 'GBP').submit(); $(this).parent().parent().submit();">£</a>
                                    <a title="US Dollar"><strong>$</strong></a>
                        <input type="hidden" name="currency_code" value="" />
      <input type="hidden" name="redirect" value="index5502.html?route=account/register" />
    </div>
  </form>
    <div class="clear"></div>

<div id="header">
    <div id="logo"><a href=""><img src="image/data/logo.jpg" title="Your Store" alt="Your Store" /></a></div>
  
  <div id="cart">
    <div class="heading">
      <h4>Shopping Cart:</h4>
      <a class="qty"><span id="cart_total">0 item(s)</span></a></div>
      <div class="clear"></div>
    <div class="content"></div>
  </div>
  
   <p id="welcome">
        Welcome visitor you can <a href="login.php">login</a> or <a href="Register.php">create an account</a>.      </p>
  
  <div class="clear"></div>
  
</div>


<div class="nav">
<div id="menu">
  <ul>
               <?php
                require_once("../../../Connect_db/dbcon.php");
                $s = "select * from  chungloai";
                $kq = mysql_query($s,$con);
                while($d = mysql_fetch_array($kq))
                {	$idCL = $d["idCL"];
                ?>
            
                    <li>
                        <a href="#"><?php echo $d["TenCL"];?></a>
                            <div>
                                <ul>
                                
                                  
                                    <?php 
                                  
                                    $s1 = "select * from loaisp where idCL=$idCL";
                                    $kq1 = mysql_query($s1,$con);
                                    while($d1 = mysql_fetch_array($kq1))
                                    {
                                 
                                    ?>
                                            <li> <a href="Category-phone.php?l=<?php echo $d1["idLoai"];?>"><?php echo $d1["TenLoai"]?></a> </li>
                                           
                                            
                                     <?php 
                                            
                                            }//while1
                                        
                                            ?>
                                </ul>
                            </div>
                     </li>
                     
					<?php }//while ?>
                </ul> <!--end.ul menu-->
</div>
<div id="search">
    <div class="button-search"></div>
        <input type="text" name="filter_name" value="Search" onclick="this.value = '';" onkeydown="this.style.color = '#000000';" />
      </div>
  <div class="clear"></div>
</div>  
<div class="clear"></div>

<div id="notification"></div>
 
<div id="content">  <div class="breadcrumb">
        <a href="index.php">Home</a>
         &raquo; <a href="login.php">Account</a>
         &raquo; <a href="Register.php">Register</a>
      </div>
  <h1>Register Account</h1>
    <p>If you already have an account with us, please login at the <a href="">login page</a>.</p>
    

    
  <form action="Check_register.php" method="post" enctype="multipart/form-data" id="f1" name="f1">
    <h2>Your Personal Details</h2>
    <div class="content">
      <table class="form">
        <tr>
          <td><span class="required">*</span> Full Name:</td>
          <td><input type="text" name="fullname" />
            </td>
        </tr>
       
        <tr>
          <td><span class="required">*</span> E-Mail:</td>
          <td><input type="text" name="email" value="" onblur="loadXMLDoc(this.value)"/> <label id="tb" style="color:#F00; font-family:Georgia, 'Times New Roman', Times, serif"></label>
            </td>
        
        </tr>
        <tr>
          <td><span class="required">*</span> Telephone:</td>
          <td><input type="text" name="telephone" value="" />
            </td>
        </tr>
     
      </table>
    </div>
    <h2>Your Address </h2>
    <div class="content">
      <table class="form">
        <tr>
          <td>Company:</td>
          <td><input type="text" name="company" value="" /></td>
        </tr>
        <tr>
          <td><span class="required">*</span> Address:</td>
          <td><input type="text" name="address" value="" />
            </td>
        </tr>
       
     
        <tr>
          <td><span class="required">*</span> City:</td>
          <td><select name="City" onchange="">
              <option value="000" selected="selected"> --- Please Select --- </option>
                                          <option value="HCM">HCM</option>
                                           <option value="HaNoi">Hanoi</option>
											 <option value="DaNang">DaNang</option>
                                             <option value="VungTau">VungTau</option>
                                             
                                        </select>
            </td>
        </tr>
        <tr>
          <td><span class="required">*</span> Sex:</td>
          <td><select name="Sex">
          	<option value="000">---Select---</option>
         	 <option value="0">Male</option>
              <option value="1">Female</option>
            </select>
            </td>
        </tr>
      </table>
    </div>
    <h2>Your Password</h2>
    <div class="content">
      <table class="form">
        <tr>
          <td><span class="required">*</span> Password:</td>
          <td><input type="password" name="password"  />
            </td>
        </tr>
        <tr>
          <td><span class="required">*</span> Password Confirm:</td>
          <td><input type="password" name="confirm" value="" />
            </td>
        </tr>
      </table>
    </div>
    <h2>Newsletter</h2>
    <div class="content">
      <table class="form">
        <tr>
          <td>Subscribe:</td>
          <td>            <input type="radio" name="newsletter" value="1" />
            Yes            <input type="radio" name="newsletter" value="0" checked="checked" />
            No            </td>
        </tr>
      </table>
    </div>
   	<h2>Captcha </h2>
    <div class="content">
    
      <table class="form">
   
        <tr>
	
          <td>
          	<img src="captcha/captcha.php" id="captcha" /><br />
              <br/>
            
            <!-- CHANGE TEXT LINK -->
            <a href="#" onclick="
                document.getElementById('captcha').src='captcha/captcha.php?'+Math.random();
                document.getElementById('captcha-form').focus();"
                id="change-image">Not readable? Change text.</a><br/><br/>
              <input type="text" name="captcha" id="captcha" />

          </td>
          
        </tr>
      </table>
    </div>
    
    
        <div class="buttons">
      <div class="right">I have read and agree to the <a class="fancybox" href="" alt="Privacy Policy"><b>Privacy Policy</b></a>                <input type="checkbox" name="agree" value='y' />
                <a href="javascript: submitform()" class="button"><span>Continue</span></a></div>
    </div>
      </form>
  

           <!--begin.validate-->
		   <script language="JavaScript" type="text/javascript" xml:space="preserve">
		   
    	 var frmvalidator = new Validator("f1");
 		frmvalidator.addValidation("fullname","req","Please enter your Full Name");
 		frmvalidator.addValidation("fullname","maxlen=20","Max length for FullName is 20");
		frmvalidator.addValidation("fullname","minlen=4","min length for fullName is 4 ");
      	frmvalidator.addValidation("fullname","alphabetic_space","Only alpha-numeric characters allowed");
		
		frmvalidator.addValidation("email","req","Please enter your Email");
		frmvalidator.addValidation("email","maxlen=20","Max length for Email is 20");
		frmvalidator.addValidation("email","minlen=4","min length for Email is 4 ");
 		frmvalidator.addValidation("email","email","please email 4-20 char and xxxx@(yahoo).com");
		
		frmvalidator.addValidation("telephone","req","Please enter your phone");
		frmvalidator.addValidation("telephone","maxlen=11");
  		frmvalidator.addValidation("telephone","numeric","Enter phone is nuberic");
		frmvalidator.addValidation("telephone","minlen=6");
		
		frmvalidator.addValidation("address","req","Please enter your Address");
		frmvalidator.addValidation("address","maxlen=300");
  		frmvalidator.addValidation("City","dontselect=000","Please choose City");
		frmvalidator.addValidation("Sex","dontselect=000","Please choose Sex");
		
		frmvalidator.addValidation("confirm","eqelmnt=password","The confirmed password is not same as password");
	  	frmvalidator.addValidation("password","neelmnt=email","The password should not be same as username");
	    frmvalidator.addValidation("password","minlen=6","Min length for Password is 6 char  ");
	    frmvalidator.addValidation("password","maxlen=20","Max length for Password is 20 char ");
		frmvalidator.addValidation("agree","shouldselchk=y","Sorry; we can Continute only if you check Agree");
		frmvalidator.addValidation("captcha","req","Capcha not Blank");
		  </script>
    
      
	<script type="text/javascript">
   	 function submitform()
    {
         if(document.f1.onsubmit())
        {//this check triggers the validations
        document.f1.submit();
            }
    }
    </script>
    <!--end.validate-->
  </div>
  
  
 
      
      
<script type="text/javascript"><!--
$('select[name=\'zone_id\']').load('');
//--></script> 
<script type="text/javascript"><!--
$('.fancybox').fancybox({
	width: 560,
	height: 560,
	autoDimensions: false
});
//--></script>  
<div id="footer">
  <div class="fooLeft">
  	<p>
	<img alt="" src="image/data/footerLogo.jpg" style="width: 89px; height: 30px;" /></p>
<p>
	Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
  
  </div>	
  <div class="column">
    <h3>Information</h3>
    <ul>
            <li><a href="">About Us</a></li>
            <li><a href="">Delivery Information</a></li>
            <li><a href="">Privacy Policy</a></li>
            <li><a href="">Terms &amp; Conditions</a></li>
          </ul>
  </div>
  <div class="column">
    <h3>Customer Service</h3>
    <ul>
      <li><a href="">Contact Us</a></li>
      <li><a href="">Returns</a></li>
      <li><a href="">Site Map</a></li>
    </ul>
  </div>

  <div class="column">
    <h3>Account</h3>
    <ul>
      <li><a href="login.php">Account</a></li>
      <li><a href="">Order History</a></li>
      <li><a href="">Wish List</a></li>
      <li><a href="">Newsletter</a></li>
    </ul>
  </div>
  <div class="clear"></div>
</div>

<div id="powered"><p class="credits">Powered by <a href="">OpenCart</a>. Theme by <a href="">Linh@yahoo.com</a></p>.
<p class="cards">credit cards</p>
<div class="clear"></div>
</div>

</div>
</body>

<meta http-equiv="content-type" content="text/html;charset=utf-8">
</html>